package com.young.trigger.event;

import com.young.core.domain.JobDO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class CallFailedEventListener implements ApplicationListener<CallFailedEvent> {

    private static final Logger LOGGER = LoggerFactory.getLogger(BrokerEventListener.class);

    /**
     * Handle an application event.
     *
     * @param event the event to respond to
     */
    @Override
    public void onApplicationEvent(CallFailedEvent event) {

        JobDO jobDO = event.getSource();

        LOGGER.info("监听到了CallFailedEvent:{}", jobDO);
    }
}
